package com.zyy.admin.service.security;

import com.zyy.admin.entity.SysUserRole;
import com.zyy.admin.mapper.SysUserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: label-lab
 * @description:
 * @author: zyy
 * @create: 2023-04-19 21:27
 **/
@Service
public class SysUserRoleService {
    @Autowired
    private SysUserRoleMapper sysUserRoleMapper;

    public List<SysUserRole> listByUserId(Integer userId) {
        return sysUserRoleMapper.listByUserId(userId);
    }
}
